public class PrintChenfa{
    /**
     * 乘法口诀输出
     */
    public static void main (String[] args) {
        int a = 1;
        int b = 1;

        //注意此处的符号
        for (a = 1,b = 1; a < 10;) {
            System.out.print(b + "×" + a + "=" + a * b + " ");
            b++;

            if(b>a)
            {//每行都是两个相同的数相乘，打完换行
                System.out.println("");
                a++;
                b=1;
            }
        }
    }
}